<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>padding居中</title>
		<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.parent{
		    width: 200px;
		    height: 200px;
		    padding: 100px;
		    border: 1px solid;
		    margin: 100px auto;
			text-align: center;
			background-color: #00FFFF;
		}
		.child{
		    width: 200px;
		    height: 200px;
		    background: pink;
		    line-height: 200px;
		    text-align: center;
		}	

		</style>
	</head>
	<body>
		
		<div class="parent">
			<div class="child">geiwo居中ya</div>
		</div>
	
	</body>
</html>
